#!/bin/sh
SCRIPTDIR="$(dirname "$0")/"
echo "script dir: $SCRIPTDIR"
LIB="$SCRIPTDIR../lib"
NATIVE="$SCRIPTDIR../native"
CONFIG="$SCRIPTDIR../config"
CLASSPATH=$CONFIG
for file in $LIB/*.jar
do
	CLASSPATH=$CLASSPATH:$file
done
echo "native path: $NATIVE"
echo "classpath: $CLASSPATH"

nohup java -Dhantang_web_server -Djava.library.path=$NATIVE -cp $CLASSPATH com.hantang.web.base.MainService &
